<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMenuNavigationTable extends Migration{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(){
        Schema::create('menu_navigation', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->comment='菜单导航表';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->string('nav_name',60)->default('')->comment('菜单导航名称');
            $table->string('nav_url',200)->default('')->comment('菜单导航链接');
            $table->integer('nav_sort')->unsigned()->index('nav_sort')->default(0)->comment('导航排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(){
        Schema::drop('menu_navigation');
    }
}
